index_of

pure function index_of(text: text): integer

Returns the position of the first occurrence of the specified substring within this text, or -1 if the text is not found.

Since

0.9.0

Parameters

text

The substring to search for.


pure function index_of(text: text, start: integer): integer

Returns the position of the first occurrence of the specified substring within this text, starting at the specified index, or -1 if the text is not found.

Since

0.9.0

Parameters

text

The substring to search for.

start

The index to start the search from.